package string;
//String replaceAll(String regex,String s):替换
//将当前字符串中满足正则表达式(regex)的部分替换为指定字符串(s)
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line="adasdasd15181das1d5sad132189das";
        line=line.replaceAll("[0-9]+","666");
        System.out.println(line);
    }
}
